package cascade

type CascadeAction struct {
	ParentIssuer        string
	RootIssuer          string
	ParentIssuerContext any
	RootIssuerContext   any
	ActionCode          string
	FullTraverse        bool
}

func (ca *CascadeAction) Copy() *CascadeAction {
	n := *ca

	return &n
}

func (ca *CascadeAction) IsActionCode(codes ...string) bool {
	for _, code := range codes {
		if ca.ActionCode == code {
			return true
		}
	}

	return false
}
